package com.sand.service;

import com.sand.entity.ContractEntity;
import com.sand.entity.ContractperformEntity;
import com.sand.util.PageModel;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface IContractService {
    HashMap<String,Object> queryContractById(int id);
    PageModel<HashMap<String, Object>> queryContractLimit(int limit, int page, String condition);
    HashMap<String, Object> queryBillById(int id);
    List<ContractperformEntity> queryBillByUser(int rid,int isAll);
    ContractperformEntity queryBillByPlayId(int rid);
    //根据用户编号查询合同信息
    PageModel<HashMap<String,Object>> queryContractByUseridLimit(int limit,int page,String condition);
    ContractEntity queryContractByLand(int rid);
    //查询租客合同记录
    PageModel<HashMap<String,Object>> queryTenantContractViewLimit(int limit,int page,String condition);
    boolean addContract(String data);
    boolean updateContract(String data);
    boolean delContract(String data);
    boolean updateContractStatus(int id,int status);
    boolean updateBillStatus(int rid,String payMethod);
}
